package Chapter8;
import java.io.*;
public class Example05 {
	public static void main(String[] args) throws Exception{
		InputStream in=new FileInputStream("source\\梁博 - 男孩 (Live).flac");
		OutputStream out=new FileOutputStream("target\\梁博 - 男孩 (Live).flac");
		byte[] buff=new byte[1024];
		int len;
		long begintime=System.currentTimeMillis();
		while((len=in.read(buff))!=-1) {
			out.write(buff, 0, len);
		}
		long endtime=System.currentTimeMillis();
		System.out.println("spend "+(endtime-begintime)+" ms");
		in.close();
		out.close();
	}

}
